package com.hongmeng.operater.mapper;

import java.util.List;
import com.hongmeng.operater.domain.HmLeaveMessage;
import com.hongmeng.operater.domain.LeaveMessage;

/**
 * 留言Mapper接口
 * 
 * @author hongmeng
 * @date 2021-01-21
 */
public interface HmLeaveMessageMapper 
{
    /**
     * 查询留言
     * 
     * @param id 留言ID
     * @return 留言
     */
    public HmLeaveMessage selectHmLeaveMessageById(Integer id);

    /**
     * 查询留言列表
     * 
     * @param hmLeaveMessage 留言
     * @return 留言集合
     */
    public List<HmLeaveMessage> selectHmLeaveMessageList(LeaveMessage hmLeaveMessage);

    /**
     * 新增留言
     * 
     * @param hmLeaveMessage 留言
     * @return 结果
     */
    public int insertHmLeaveMessage(HmLeaveMessage hmLeaveMessage);

    /**
     * 修改留言
     * 
     * @param hmLeaveMessage 留言
     * @return 结果
     */
    public int updateHmLeaveMessage(HmLeaveMessage hmLeaveMessage);

    /**
     * 删除留言
     * 
     * @param id 留言ID
     * @return 结果
     */
    public int deleteHmLeaveMessageById(Integer id);

    /**
     * 批量删除留言
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteHmLeaveMessageByIds(Integer[] ids);
}
